package main

import (
	"0519/common/grpc"
	"0519/common/initialize"
	"0519/common/viper"
	"0519/rpc/internal"
	"0519/rpc/models"
	grpc2 "google.golang.org/grpc"
)

func main() {
	viper.Init()

	initialize.Nacos()
	initialize.Mysql()
	models.MysqlInit()
	initialize.Redis()
	initialize.ConSul()
	initialize.InitLogger()

	grpc.RegisterGrpc(func(server *grpc2.Server) {
		internal.RegisterCourse(server)
	})

}
